﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Messenger.WinDialogs
{
    public class ShowWinDialogContext
    {
        /// <summary>
        /// 窗口标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 窗口的所属者
        /// </summary>
        public Window? Owner { get; set; }

        /// <summary>
        /// 显示的View
        /// </summary>
        public IDialogView View { get; set; }

        /// <summary>
        /// 窗口标题
        /// </summary>
        public SizeToContent SizeToContent { get; set; }

        /// <summary>
        /// 显示的按钮
        /// </summary>
        public MessageBoxButton? MessageButton { get; set; }

        /// <summary>
        /// 是否显示底部的按钮
        /// </summary>
        public bool ShowMessageBoxButton { get; set; } = true;

        public Style? WinStyle { get; set; }

        public Style? PositiveBtnStyle { get; set; }

        public Style? NegativeBtnStyle { get; set; }
    }
    public interface IDialogView : IDisposable
    {
        public delegate void HandleResult(MessageBoxResult result);

        public event HandleResult? HandleResultEvent;

        public void HadleResult(MessageBoxResult result);
        public object? GetResult();
    }

}
